home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3485 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: ix.netcom.com!netnews
  2. From: mlwillia@ix.netcom.com (Michael Williams)
  3. Newsgroups: comp.lang.c
  4. Subject: Problem linking in an old library...
  5. Date: Mon, 29 Jan 1996 13:40:36 GMT
  6. Organization: Netcom
  7. Message-ID: <4eiiq1$5o2@cloner2.ix.netcom.com>
  8. NNTP-Posting-Host: ix-gra3-01.ix.netcom.com
  9. X-NETCOM-Date: Mon Jan 29  5:41:21 AM PST 1996
  10. X-Newsreader: Forte Agent .99b.112
  11.  
  12. Here's my problem:
  13.  
  14. I'm trying to write a small Windows DLL using some functions in a
  15. library I received from a vendor.  Apparently this library has only
  16. been used for DOS programs and was written back in 1992 sometime.
  17. When I try to compile the DLL (using Microsoft Visual C++ v1.52), I
  18. keep getting an "unresolved external' for the function in the library.
  19.  
  20. I'm using the exact syntax out of the header file.  I can even get a
  21. DOS executable to compile using the library.  My questions are:
  22.  
  23. 1.  Is it possilble to create a DOS-only Library?
  24.  
  25. 2.  Assuming the above IS NOT true, are there certain flags I need to
  26. set in order to access this funciton?  (I've tried changing the
  27. calling convention to PASCAL - no luck.)
  28.  
  29. 3.  Is there a program somewhere that will let me look at how a
  30. function is defined in a LIB file?
  31.  
  32. Thanks for any help!!!!
  33.  
  34. Mike Williams
  35. mlwillia@ix.netcom.com
  36.  
  37.  
  38.